<template>
  <div class="news">
    <div class="banner">
      <img :src="ban1" alt="">
    </div>
    <div class="edit-box container">
      <p class="p-head">公司简介</p>
      <div class="cont-box" v-html='desc'>
        
      </div>
    </div>
  </div>
</template>

<script>
import ban1 from '@/assets/image/ban1.jpg';
import qs from "qs"
export default {
  name: 'App',
  data(){
    return{
      ban1,
      desc:''
    }
  },
  methods:{
    getinfo:function(){
        this.$http.post("/index.php/index/article/getArticleInfo",qs.stringify({
              // mobile:this.tel,
              // password:this.pwd
                  id: 20
              }))
              .then(res => {
                console.log(res)
                this.desc = res.data.content
              })
              .catch(error => {
                alert("网络错误")
              });
    }
  },
  components:{
    
  },
  created(){
    this.getinfo();
  }
}
</script>

<style scoped lang="less">
.news{
  width: 100%;
  height: auto;
  zoom: 1;
  overflow: hidden;
  .banner{
    width: 100%;
    height: auto;
    zoom: 1;
    overflow: hidden;
    img{
      width: 100%;
    }
  }
  
}
.edit-box{
  height: auto;
  zoom: 1;
  overflow: hidden;
  margin-top: 30px;
  padding: 0.2rem;
  .p-head{
    font-size: 20px;
    color: #2e2e2e;
    text-align: center;
  }
  .cont-box{
    margin-top: 20px;
    text-align: left;
  }
  img{
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 100%;
  }
}
</style>
